package com.link510.aitools.services;


import com.link510.aitools.framework.activity.BaseApplication;

import lombok.Getter;

/**
 * App工具
 */
public class ApplicationUtils {

    @Getter
    private BaseApplication application = null;

    /**
     * 单例
     */
    private static ApplicationUtils mInstance = null;

    public static ApplicationUtils getInstance() {

        if (mInstance == null) {
            synchronized (ApplicationUtils.class) {
                if (mInstance != null) {
                    return mInstance;
                }

                mInstance = new ApplicationUtils();
            }
        }

        return mInstance;
    }

    private ApplicationUtils() {

    }

    public void init(BaseApplication application) {
        this.application = application;
    }


}
